//
//  FDCaseModel.m
//  FamousDoctorOnline
//
//  Created by 丁鼎 on 16/7/7.
//  Copyright © 2016年 wszyxc. All rights reserved.
//

#import "FDCaseModel.h"

@implementation FDCaseModel

-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if(self = [super init])
    {
       self.photo = [aDecoder decodeObjectForKey:@"photo"];
        self.detail = [aDecoder decodeObjectForKey:@"detail"];
        self.baseKind = [aDecoder decodeObjectForKey:@"baseKind"];
        self.currentTime = [aDecoder decodeObjectForKey:@"currentTime"];
        self.diseaseKind = [aDecoder decodeObjectForKey:@"diseaseKind"];
    }
    return self;
}

-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_photo forKey:@"photo"];
    [aCoder encodeObject:_detail forKey:@"detail"];
    [aCoder encodeObject:_baseKind forKey:@"baseKind"];
    [aCoder encodeObject:_currentTime forKey:@"currentTime"];
    [aCoder encodeObject:_diseaseKind forKey:@"diseaseKind"];
}

@end
